﻿#define _CRT_SECURE_NO_WARNINGS 1

//编程初学者入门训练第四十八题
//BC50 计算单位阶跃函数
//https://www.nowcoder.com/practice/0b23793ae48a4e6cb7dfff042c959a04?tpId=107&tqId=33331&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D107&difficulty=undefined&judgeStatus=undefined&tags=&title=

#include <stdio.h>

int main() {
    int t = 0;
    while (scanf("%d", &t) != EOF) {
        if (t > 0) {
            printf("1\n");
        }
        if (t == 0) {
            printf("0.5\n");
        }
        if (t < 0) {
            printf("0\n");
        }
    }

    return 0;
}